package com.tsd.core.excel.impexcel;

import java.io.Serializable;

/**
 * Excel文件配置
 *
 * @author wudw
 */
public class ExcelConfig implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1339934976606197339L;

    final public static String FIELD_TYPE_INT = "int";
    final public static String FIELD_TYPE_STRING = "string";
    final public static String FIELD_TYPE_DOUBLE = "double";
    final public static String FIELD_TYPE_DATE = "date";
    /**
     * Excel对应的列号,从0开始
     */
    private int cellIndex;
    private String fieldName;
    private String fieldType;
    private Integer length;
    private boolean must;
    private boolean hide;

    private String cellLetter;

    /**
     * Excel对应的列号,从0开始
     *
     * @return
     */
    public int getCellIndex() {
        return cellIndex;
    }

    public void setCellIndex(int cellIndex) {
        this.cellIndex = cellIndex;
    }

    /**
     * 字段名称
     *
     * @return
     */
    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    /**
     * 数据类型，string int double date
     *
     * @return
     */
    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    /**
     * 长度，字符串时必填
     *
     * @return
     */
    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    /**
     * 是否必填，1-是，0-否
     *
     * @return
     */
    public boolean isMust() {
        return must;
    }

    public void setMust(boolean must) {
        this.must = must;
    }

    /**
     * 是否隐藏，1-是，0-否必填
     *
     * @return
     */
    public boolean isHide() {
        return hide;
    }

    public void setHide(boolean hide) {
        this.hide = hide;
    }

    public String getCellLetter() {
        return cellLetter;
    }

    public void setCellLetter(String cellLetter) {
        this.cellLetter = cellLetter;
    }
}
